<?php include '../template/template_main.tpl'; 
require("../connect/connect.php");
require("../lib/defaultLib.php");

if(isset($_SESSION["id"])){
	$id = $_SESSION["id"];
	$tipo = $_SESSION["profile"];
	if ($_SESSION["profile"] != 2)
		header("Location: index.php");
}
$tabela = getInactive($conn);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="../css/template.css" />
<link rel="stylesheet" type="text/css" href="../css/corpo_main.css" />
<link rel="stylesheet" type="text/css" href="../css/lista.css" />
<script type="text/javascript" src="../js/jquery-1.7.2.js" ></script>
<script type="text/javascript" src="../js/main.js" ></script>

<title>.:MateMatrix:.</title>

</head>
<body>
	<?php makeHeader(); ?>
	<?php echo $estruturaInicio;?>
	<div id="title">
		<h1>- Lista de Equipas -</h1>
	</div>
	<?php for ($i=0; $i<count($tabela); $i++){
			echo "<div class='teamList'><div class='teamName'><span id=\"name\">Nome da Equipa: </span>".$tabela[$i]["equipa"]."</div></div>
			";
			echo "<a href=\"../admin/changeStatus.php?id=". $tabela[$i]["id"] ."&tipo=1\" type=\"button\"><div class='button1'>Activar</div></a>";
		}
	?>
	<?php echo $estruturaFim; ?>
	<?php echo $footer;?>
</body>
</html>